#pragma warning(disable : 4996)
//#include<stdio.h>
//int main()
//{
//	int arr1[10] = { 1,2,3,4,5,6,7,8,9,10 };
//	int arr2[10] = { 11,22,33,44,55,66,77,88,99 ,100 };
//	for (int i = 0; i < 10; i++)
//	{
//		arr1[i] = arr2[9 - i];
//	}
//	return 0;
//}

#include<stdio.h>
void init(int* arr,int n)
{
	for (int i = 0; i < n; i++)
	{
		*arr = 0;
		arr++;
	}

}
void print(int*arr,int n)
{
	for (int i = 0; i < n; i++)
	{
		printf("%d ", arr[i]);
	}

}
void reverse(int* arr, int n)
{
	for (int i = 0; i<=((n-1)/2); i++)
	{
		if (i != n - i - 1)
		{
			int temp = arr[i];
			arr[i] = arr[n - i - 1];
			arr[n - i-1] = temp;
		}
	}
}
int main()
{
	int arr1[9] = { 1,2,3,4,5,6,7,8,9 };
	int size = sizeof(arr1) / sizeof(arr1[0]);
	init(arr1,size);
	print(arr1,size);
	reverse(arr1, size);
	return 0;
}